import { WebManageConst } from "src/consts/web_manage_const";

export default class ListHandler implements DemoListHandler {
    rowEdit(ind: number, row: DemoData): void {
        WLCommit(WebManageConst.CommitType, "edit")

        let senData: any = {}
        senData["id"] = row.id
        WLDispatch(WebManageConst.DispatchWebMShow, senData);
    }

    rowSet(ind: number, row: DemoData): void {
        WLCommit(WebManageConst.CommitType, "set")

        let senData: any = {}
        senData["id"] = row.id
        WLDispatch(WebManageConst.DispatchWebMSet, senData);
    }
}